package chapter03;

import java.util.Arrays;

public class lambda_1 {
    public static void main(String[] args) {
        int[][] a=new int[][]{{4,5},{1,4},{2,5},{1,6}};
        Arrays.sort(a,(s,b)->(s[1]-b[1]));
        for (int i = 0; i < a.length; i++) {
            System.out.println(Arrays.toString(a[i]));
        }


    }
}
